<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Bien Etre et Privileges - HOME</title>
<link rel="stylesheet" href="<?php echo base_url()?>css/styles.css" type="text/css"/>
<!--<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>-->
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3.4&key=AIzaSyDjgrRdqelXfhegxThRR0FkBQQS-VywJQs&sensor=false"></script>
<script type="text/javascript" src="../../../js/map.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$(function() {
		$( "#ville" ).autocomplete({
			source: function(request, response) {
				$.ajax({ url: "<?php echo site_url('autocomplete/suggestionsVille'); ?>",
				data: { term: $("#ville").val()},
				dataType: "json",
				type: "POST",
				success: function(data){
					response(data);
				}
			});
		},
		minLength: 2
		});
                
                $( "#departement" ).autocomplete({
			source: function(request, response) {
				$.ajax({ url: "<?php echo site_url('autocomplete/suggestionsDepartement'); ?>",
				data: { term: $("#ville").val()},
				dataType: "json",
				type: "POST",
				success: function(data){
					response(data);
				}
			});
		},
		minLength: 2
		});
                
                $( "#etablissement" ).autocomplete({
			source: function(request, response) {
				$.ajax({ url: "<?php echo site_url('autocomplete/suggestionsEtablissement'); ?>",
				data: { term: $("#ville").val()},
				dataType: "json",
				type: "POST",
				success: function(data){
					response(data);
				}
			});
		},
		minLength: 2
		});
	});
});
</script>
</head>

<body  onLoad="initialize()">
<!-- ------------------------- HEADER ------------------------- -->
<div id="main">
<div id="header">
    <div id="header-right">
        <div id="form-inscription" align="right">
            <?php if (!isset($email)) { ?>
            <?php //echo validation_errors(); ?>
            <?php echo form_open('form'); ?>
            <label>Votre email</label>
            <input style="width:140px" class="champs" name="identity" value="email" id="email" type="text" /><br/>
            <p style="height:5px"></p>
            <label>Votre mot de passe</label>
            <input style="width:98px" class="champs" name="password" id="password" type="password" />
            <input type="submit" id="news" name="newsletter" value="OK"/><br/>
            <label>Se souvenir de moi</label><input name="remember" type="checkbox" value="" /></form>
            <span id="libelle">Mot de passe oublié ?</span><br />
            <span id="libelle">S'inscrire</span>
            <?php              } else{
             echo $email; ?>
             <a href="<?php echo site_url('form/logout')?>">Deconnecter</a><?php
            } 
            ?>
           
        </div>
        
        
    </div>
    <div id="header-image"><?php echo img('images/logo.jpg'); ?></div>
    <div id="header-navigation">
        <ul id="navigation">
            <li><a href="<?php echo site_url('pages/home')?>">ACCUEIL</a></li>
           <!--<li><a href="<?php echo site_url('pages/abonner')?>">S'ABONNER</a></li>-->
            <li><a href="<?php echo site_url('pages/marques')?>">MARQUES</a></li>
            <li><a href="<?php echo site_url('pages/partenaires')?>">NOS PARTENAIRES</a></li>
            <li><a href="<?php echo site_url('pages/blog')?>">BLOG</a></li>
            <li><a href="<?php echo site_url('pages/offre_privilege')?>">OFFRES PRIVILEGE</a></li>
            <li><a href="<?php echo site_url('pages/compte')?>">MON COMPTE</a></li>
        </ul>
    </div>


</div>
